package lc.com.androidproject.base;

import android.os.Bundle;
import android.widget.FrameLayout;

import butterknife.BindView;
import butterknife.ButterKnife;
import lc.com.androidproject.R;
import lc.com.architecture.base.BaseActivity;
import lc.com.architecture.base.BaseFragment;
import lc.com.architecture.utils.ActivityUtil;

/**
 * @author LiuChao
 * @describe
 * @date 2017/11/14
 * @contact email:450127106@qq.com
 */

public abstract class LCBaseActivity<P> extends BaseActivity {

    @Override
    public int getLayoutId() {
        return R.layout.activity_lc_base;
    }

    @Override
    public void initView() {
        ActivityUtil.addFragmentToActivity(getSupportFragmentManager(), getFragment(), R.id.fl_fragment_container);
    }

    @Override
    public void initData() {

    }

    public abstract BaseFragment getFragment();

}
